package basic;

import java.text.DecimalFormat;

public class FloatTest {

	public static void main(String[] args) {

		print(123456789.12d);
		print(12345678.12d);
		print(1234567.12d);
		print(123456.12d);
		print(12345.12d);
	}

	static void print(Double f) {
		System.out.println(f.toString());
		DecimalFormat format = new DecimalFormat("#.##");
		System.out.println(format.format(f));
		System.out.println("----------------");
	}
}
